python UDP socket - recvfrom works but getpeername() gives Transport endpoint is not connected error

Understanding UDP Sockets: Why getpeername() Fails with Transport Endpoint is Not Connected Error

welcome to shbcf.ru